/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.github.pig.common.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.Data;

/**
 * <p>
 * 动态路由配置表
 * </p>
 *
 * @author lengleng
 * @since 2018-05-15
 */
@Data
@TableName("sys_zuul_route")
public class SysZuulRoute extends Model<SysZuulRoute> {

	private static final long serialVersionUID = 1L;

	/**
	 * router Id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/**
	 * 路由路径
	 */
	private String path;
	/**
	 * 服务名称
	 */
	@TableField("service_id")
	private String serviceId;
	/**
	 * url代理
	 */
	private String url;
	/**
	 * 转发去掉前缀
	 */
	@TableField("strip_prefix")
	private String stripPrefix;
	/**
	 * 是否重试
	 */
	private String retryable;
	/**
	 * 是否启用
	 */
	private String enabled;
	/**
	 * 敏感请求头
	 */
	@TableField("sensitiveHeaders_list")
	private String sensitiveheadersList;
	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private Date createTime;
	/**
	 * 更新时间
	 */
	@TableField("update_time")
	private Date updateTime;
	/**
	 * 删除标识（0-正常,1-删除）
	 */
	@TableField("del_flag")
	private String delFlag;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
